package org.hcf.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 群组成员关系表
 * </p>
 *
 * @author xianiyitiao
 * @since 2024-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ChatGroupInfo对象", description="群组成员关系表")
public class ChatGroupInfo extends Model<ChatGroupInfo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "info_id", type = IdType.AUTO)
    private Long infoId;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "群组id")
    private Long groupId;

    @ApiModelProperty(value = "群身份:0.普通成员,1.管理员,2.群主")
    private byte groupRole;

    @ApiModelProperty(value = "玩家在群中的别称")
    private String userNick;

    @ApiModelProperty(value = "群备注")
    private String remark;

    @ApiModelProperty(value = "是否置顶:置顶时间0为不置顶")
    private long isTop;

    @ApiModelProperty(value = "是否免打扰")
    private boolean isNotDisturb;

    @ApiModelProperty(value = "是否折叠")
    private boolean isFlod;

    @ApiModelProperty(value = "不显示群成员昵称")
    private boolean isNotShowMemberName;

    @ApiModelProperty(value = "是否保存群组")
    private boolean keepGroup;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime modifyTime;

    @ApiModelProperty(value = "加入时间")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return this.infoId;
    }

}
